/**
 * 
 */
package it.unical.canonaco.rende.igpe.game.cbv.logiclayer.engine.component.world;

/**
 * @author Massimo Canonaco
 *
 */
public class SpawnCoordinate {

	static private final int NULL_VALUE = -1;
	
		String row;
		String column;
		
		private int iRow;
		private int iColumn;
		public SpawnCoordinate() 
		{
			iRow = iColumn = NULL_VALUE;
		}
		
		@Override
		public int hashCode() 
		{
			return Integer.parseInt(row+column);
		}
		
		public int getIRow()
		{
			if(iRow == NULL_VALUE)
			{
				iRow = Integer.parseInt(row);
			}
			return iRow;
		}
		
		public int getIColumn()
		{
			if(iColumn == NULL_VALUE)
			{
				iColumn = Integer.parseInt(column);
			}
			return iColumn;
		}
}
